﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class PhieuThuePhongBUS
    {
        public static DataTable GetAll()
        {
            return PhieuThuePhongDAO.GetAll();
        }
        public static void InsertPhieuThuePhong(PhieuThuePhongDTO pt)
        {
            PhieuThuePhongDAO.InsertPhieuThuePhong(pt);
        }
        public static DataTable PhieuThuePhongChuaThanhToan()
        {
            return PhieuThuePhongDAO.PhieuThuePhongChuaThanhToan();
        }
        public static void CapNhatPhieuThuePhong(int mapt, DateTime NgayKetThuc, int SoNgayThue, float ThanhTien)
        {
            PhieuThuePhongDAO.CapNhatPhieuThuePhong(mapt, NgayKetThuc, SoNgayThue, ThanhTien);
        }
        //************************************************//
        //Author:Nguyen Tan Phat
        //MSSV:1173025
        //Class:11HT
        #region
        public static int Insert(PhieuThuePhongDTO PHIEUTHUEPHONG)
        {
            return PhieuThuePhongDAO.Insert(PHIEUTHUEPHONG);
        }
        #endregion
        //************************************************//
        
    }
}
